import pyautogui as pyg
import pygetwindow as gw
import keyboard
import time 
pause=False 
def pause():
    global pause 
    pause =  True
    print("暂停增福")
def start():
    global pause 
    pause =  False
    print("开始增福")

def move():
    print("start moveing")
    pyg.keyDown("down")
    time.sleep(3)
    pyg.keyUp('down')

keyboard.add_hotkey("ctrl+f1",start)
keyboard.add_hotkey("ctrl+f2",pause)
print("1,请按ctrl+f1开始 ，ctrl+f2停止增幅")
while True:
    if pause:
        time.sleep(1)
    else:
        # 增幅开关
        move()
        # 获取坐标方法
        #get_position()